package com.gexada.simplechat.data;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface UserRoleRepository extends CrudRepository<UserRole, Long> {

	@Query("select role from UserRole u where u.user = ?1")
	List<String> findRolesByUser(User user);
}
